package fms.services;

public class ServiceException extends Exception {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public static final int SERVICE_LOADING_EXCEPTION_CLASSNOTFOUND = 10;

	public static final int SERVICE_LOADING_EXCEPTION_CLASSNOTSERVICE = 11;

	public static final int SERVICE_EXCUTING_EXCEPTION_DBERROR = 20;

	/** Creates a new instance of ServiceException */
	public ServiceException(String message) {
		super(message);
	}

	public ServiceException(int serviceExceptionType, String message) {
		super(message);
		this.setServiceExceptionType(serviceExceptionType);
	}

	/**
	 * Holds value of property serviceExceptionType.
	 */
	private int serviceExceptionType;

	/**
	 * Getter for property serviceExceptionType.
	 * 
	 * @return Value of property serviceExceptionType.
	 */
	public int getServiceExceptionType() {
		return this.serviceExceptionType;
	}

	/**
	 * Setter for property serviceExceptionType.
	 * 
	 * @param serviceExceptionType
	 *            New value of property serviceExceptionType.
	 */
	public void setServiceExceptionType(int serviceExceptionType) {
		this.serviceExceptionType = serviceExceptionType;
	}

}
